fix(react-form-start): replace deprecated inputValidator with validator#2230
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughUpdates server-function validation calls from ChangesValidator rename and dependency updates
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
TanStack Start has deprecated createServerFn().inputValidator() in favour of .validator(). Update the react-form-start package, example, and SSR docs accordingly, and bump the @tanstack/react-start peer dependency to ^1.168.27 where the new API is available.
9c8f0d1 to
f25ed02
Compare
# Conflicts: # packages/react-form-nextjs/package.json # packages/react-form-remix/package.json # packages/react-form-start/package.json # pnpm-lock.yaml
|
View your CI Pipeline Execution ↗ for commit 88bfc4a
☁️ Nx Cloud last updated this comment at |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2230 +/- ##
==========================================
- Coverage 90.35% 89.74% -0.62%
==========================================
Files 38 65 +27
Lines 1752 3207 +1455
Branches 444 810 +366
==========================================
+ Hits 1583 2878 +1295
- Misses 149 295 +146
- Partials 20 34 +14 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
TanStack Start has deprecated
createServerFn().inputValidator()in favour of.validator(). Projects using@tanstack/react-form-startwere seeing a build-time deprecation warning from the Start compiler.This PR updates the library, example, and SSR documentation to use the new API, and bumps the
@tanstack/react-startpeer dependency to^1.168.27, which includes thevalidator()method.Changes
.inputValidator()with.validator()increateServerValidate.tsx@tanstack/react-startto^1.168.27inreact-form-startand the examplepnpm-lock.yamland addminimumReleaseAgeExcludeentries for the updated TanStack packagesTest plan
@tanstack/react-formand@tanstack/react-form-startsuccessfullySummary by CodeRabbit